package com.tyk.bookstore.front.order.model.dto;

import com.tyk.bookstore.front.common.core.model.enume.PaymentWay;
import com.tyk.bookstore.front.order.model.emume.OrderState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description OrderExplicitDto
 */
@Data
public class OrderExplicitDto {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "父级ID")
    private Long parentId;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "商品总金额")
    private BigDecimal amount;

    @Schema(description = "下单时间")
    private LocalDateTime createTime;

    @Schema(description = "订单状态")
    private OrderState state;

    @Schema(description = "收件人名称")
    private String cneeName;

    @Schema(description = "支付方式[0商城余额，1支付宝，2微信]")
    private PaymentWay paymentWay;

}
